home *** CD-ROM | disk | FTP | other *** search
- Path: news.cdsnet.net!usenet
- From: Craig Pennington <coherent@mail.cdsnet.net>
- Newsgroups: comp.lang.c++
- Subject: Re: Q: Prohibiting Multiple Program Instances in MFC (VC++4.0)
- Date: Fri, 12 Apr 1996 08:46:20 -0700
- Organization: Coherent Systems, Inc.
- Message-ID: <316E7ACC.23EA@mail.cdsnet.net>
- References: <316BFE04.130E@osu.edu>
- NNTP-Posting-Host: med-pm2-003.cdsnet.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- Find the infoviewer article Q109175 to prevent multiple
- instances. It suggest registering a class, and then checking
- for the existence of that class as a means of knowing your app
- is already running.
-
- Actually, the sample code won't quite work because (I think) the
- AfxFrameOrView class is no longer defined. But you can
- determine what attributes it has.
-
- Good luck.
-
- Craig Pennington
- Coherent Systems, Inc.
-